package cn.jiyun.controller;

import cn.jiyun.config.JdbcConfig;
import cn.jiyun.config.Student;
import cn.jiyun.config.StudentConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private JdbcConfig jdbcConfig;
    @Autowired
    private StudentConfig studentConfig;
    @GetMapping("test")
    public String test(){
        return "你好";
    }
    @GetMapping("jdbc")
    public String test02(){
      return "springboot项目"+jdbcConfig;
    }
    @GetMapping("student")
    public String test03(){
        return "springboot项目"+studentConfig;
    }
}
